<template>
  <Index ref="index" title="工单调整" type="1" @itemClick="itemClick" />
</template>

<script>
import Index from "@/pages/staging/components/index";
import { setPageData } from "@/store/user";
export default {
  components: { Index },
  data() {
    return {};
  },
  onShow: function () {
    if (this.$refs.index) this.$refs.index.onRefresh();
  },
  methods: {
    itemClick(data) {
      setPageData(data);
      uni.navigateTo({
        url: "/pages/staging/work-order-adjustment/details?id=" + data.id,
        animationType: "pop-in",
      });
    },
  },
};
</script>
